<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的米游助手个人中心 - 首页</title>

<link rel="stylesheet"
	href="${pageContext.request.contextPath}/css/member/style.css"
	type="text/css"></link>
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/css/member/page.css"
	type="text/css"></link>
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/jslib/jquery.css"
	type="text/css"></link>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/jslib/jquery-1.9.1.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/jslib/layer/layer.min.js"></script>
</head>

<body>
	<div id="doc-hd">
	
	</div>
	<div class="top_nav">
		<div class="navbar">
			<ul>
				<li><a
					href="${pageContext.request.contextPath}/pages/member/main.jsp"
					target="_parent">首 页</a></li>
				<li id="personinfo"><a
					href="${pageContext.request.contextPath}/system/userinfo.shtml"
					target="_parent">帐号资料</a></li>
				<li><a
					href="${pageContext.request.contextPath}/system/appinfo.shtml"
					target="_parent">应用上传</a></li>
				<li><a
					href="${pageContext.request.contextPath}/pages/member/main.jsp"
					target="_parent">帐号安全</a></li>
				<li><a
					href="${pageContext.request.contextPath}/pages/member/main.jsp"
					target="_parent">我的特权</a></li>
			</ul>
		</div>
	</div>
	<div id="doc-bd">
		<div id="userinfo" style="width: 930px; height: 600px;" class="layout">
			<form id="userForm" method="post"> 
				<input type="hidden" name="user.devuid" value="${user.devuid}">
				<fieldset>
					<ol>
						<li></li>
						<li><label class="form_th"> 米游助手帐号: </label><s:property value="user.yxdz00"/></li>
						<li><label class="form_th"> 真实名称: </label><s:property value="user01.jsxm00"/></li>
						<li><label class="form_th"> 昵称: </label> <input id="nc0000"
							class="check_code" type="text" name="user.nc0000" onchange=""
							datatype="s4-4" nullmsg="请输入昵称!" errormsg="昵称已存在" value="${user.nc0000}"/> <span
							class="check_code_img mlr10">
								<div class="Validform_checktip"></div>
						</li>
						<li>&nbsp;</li>
						<li>
						<label class="form_th" style="font-size: 18px;font-weight: 700;">其他资料(选填)</label>
							<hr>
							
						</li>
						<li><label class="form_th"> 您的性别: </label> 
							<c:set var="sex000" value="${user01.sex000}" />						
							<c:choose>
								<c:when test="${sex000=='000'}">
									<input
									type="radio" name="user01.sex000" value="000" checked="true">男 
									<input
									type="radio" name="user01.sex000" value="001">女 
									<input
									type="radio" name="user01.sex000" value="002">保密
								</c:when>		
								<c:when test="${sex000=='001'}">
									<input
									type="radio" name="user01.sex000" value="000">男 
									<input
									type="radio" name="user01.sex000" value="001" checked="true">女 
									<input
									type="radio" name="user01.sex000" value="002">保密
								</c:when>		
								<c:when test="${sex000=='002'}">
									<input
									type="radio" name="user01.sex000" value="000">男 
									<input
									type="radio" name="user01.sex000" value="001">女 
									<input
									type="radio" name="user01.sex000" value="002" checked="true">保密
								</c:when>			
								<c:otherwise> 
									<input
									type="radio" name="user01.sex000" value="000">男 <input
									type="radio" name="user01.sex000" value="001">女 <input
									type="radio" name="user01.sex000" value="002">保密
								</c:otherwise>
							</c:choose>
									</li>
								<li><label class="form_th"> QQ号码: </label> <input
									type="text" width="100px" name="user01.qq0000" value="${user01.qq0000}"></li>
								<li><label class="form_th"> 我的年龄: </label> <input
									type="text" width="100px" name="user01.birth0" value="${user01.birth0}"></li>
								<li><label class="form_th"> 我的血型: </label> <input
									type="text" width="100px" name="user01.xx0000" value="${user01.xx0000}"></li>
								<li><label class="form_th"> 所在地区: </label> <input
									type="text" width="100px" name="user01.szs000" value="${user01.szs000}"></li>
								<li><label class="form_th"> 联系地址: </label> <input
									type="text" width="100px" name="user01.txdz00" value="${user01.txdz00}"></li>
								<li><label class="form_th"> 毕业学校: </label> <input
									type="text" width="100px" name="user01.byyx00" value="${user01.byyx00}"></li>								
								<li><label class="form_th"> 从事职业: </label> <input
									type="text" width="100px" name="user01.dqzy00" value="${user01.dqzy00}"></li>
								<li><label class="form_th"> 个人爱好: </label> <input
									type="text" width="100px" name="user01.xqah00" value="${user01.xqah00}"></li>
								<li><label class="form_th"> 签名: </label> <textarea rows="5"
										style="width:250px" name="user01.jm0000" >${user01.jm0000}</textarea></li>
						<li style="padding-top: 10px;"><label class="form_th">&nbsp;</label>
							<input value="保存" class="button mr5 mt10" type="button"
							id="saveUser" /></li>
						<li class="clr"></li>
					</ol>
				</fieldset>
			</form>

		</div>


	</div>
	<!-- 尾页 -->
	<jsp:include page="/pages/member/footer.jsp" flush="true"></jsp:include>
</body>
<script type="text/javascript" charset="utf-8">
	$(function() {
		$('.navbar li').removeClass("cur");
		$('#personinfo').addClass("cur");
		//保存
		$('#saveUser').click(function(){
			$.ajax({
			   type: "POST",
			   url: "${pageContext.request.contextPath}/system/saveUser.shtml",
			   data: $('#userForm').serializeArray(),
			   success: function(msg){
			   		layer.msg('保存成功',3,1,function(){
			   			location.reload(); 
			   		});			     	
			   }
			});
			
		});
	});
</script>
</html>
